package com.example.websocket.service;

import org.springframework.web.socket.WebSocketSession;

import java.util.Collection;
import java.util.Set;

public interface UserService {
    Set<String> getSessionIds();

    WebSocketSession getSessionById(String id);

    void setSession(WebSocketSession session);

    void removeSession(WebSocketSession session);

    Collection<WebSocketSession> getSessions();
}
